#ifndef APPLICATIONS_POLARISDATA_SDRAMDATA_H_
#define APPLICATIONS_POLARISDATA_SDRAMDATA_H_

#include <rtthread.h>

class SdramData
{
public:
    SdramData();
    void reset(){rdAddr = 0xC0800000;dst = 0xC0800000;}
    virtual ~SdramData();
    int isBusy();
    uint32_t ReadyToFsmc();
    int dma_config(uint32_t src,uint32_t BUFFER_SIZE);
    uint32_t getRdAddr(){return rdAddr;}
    void rdAddrCount(uint32_t num);

private:
    static uint32_t dst;
    uint32_t rdAddr;
};

#endif /* APPLICATIONS_POLARISDATA_SDRAMDATA_H_ */
